from flask import Flask,redirect, url_for
app = Flask(__name__)
@app.route('/')
def index():
    return 'Index Page'

@app.route('/redirect')
def redirect_to_index():
    return redirect(url_for('index'))